package com.sdy.resdir.biz.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author hyh
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
public class IpApplyListVo {

    @ApiModelProperty(value = "ID")
    private Integer id;

    @ApiModelProperty(value = "订单号")
    private String applyNum;

    @ApiModelProperty(value = "自建系统名称")
    private String sysName;

    @ApiModelProperty(value = "ipId")
    private String ipId;

    @ApiModelProperty(value = "IP列表")
    private List<String> ipList = new ArrayList<>();

    @ApiModelProperty(value = "用户id")
    private Integer applyUserId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "部门")
    private String userDept;

    @ApiModelProperty(value = "当前状态（1未提交、2待审批 3接收mq、4审批中、5已撤回、6审批通过、7已驳回）")
    private Integer currentState;

    /**
     * 节点状态,以此判断能否审核订单
     */
    @ApiModelProperty(value = "节点状态,以此判断能否审核订单")
    private Integer result;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}